/*
 * @Author: hq
 * @Date: 2022-08-03 12:33:53
 * @LastEditors: hq
 * @LastEditTime: 2022-08-03 12:59:41
 * @Description: your project
 * @version: 1.0
 */
export default function getCurrentTime() {
    //获取当前时间并打印
    let gettime
    let yy = new Date().getFullYear();
    let mm = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1;
    let dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate();
    let hh = new Date().getHours();
    let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes();
    let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds();
    gettime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
    return gettime
}